﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Globalization;
using BlueLotus7.Common;

namespace BlueLotus7.Web
{
    public abstract class BaseCalendarModel
    {
        protected const string defaultDateFormat = "yyyy-MM-dd";
        protected const string defaultDatetimeFormat = "yyyy-MM-dd HH:mm:ss";

        public DateTime StartStamp
        {
            get;
            set;
        }

        public DateTime EndStamp
        {
            get;
            set;
        }

        public DayOfWeek FirstdayOfWeek
        {
            get;
            set;
        }

        /// <summary>
        /// Base url format.
        /// <example>
        /// http://demosite.com/calendar/{year}/{month}
        /// </example>
        /// </summary>
        public string BaseUrl
        {
            get;
            set;
        }

        public string DateFormat
        {
            get;
            set;
        }

        public string DateTimeFormat
        {
            get;
            set;
        }

        #region Constructors

        public BaseCalendarModel(DateTime startStamp, DateTime endStamp, DayOfWeek firstdayOfWeek, string baseUrl)
        {
            this.StartStamp = startStamp;
            this.EndStamp = EndStamp;
            this.FirstdayOfWeek = firstdayOfWeek;
            this.BaseUrl = baseUrl;
        }

        #endregion
    }
}